package com.zhou.dao;

import com.github.pagehelper.Page;
import com.zhou.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    Set<Permission> findByRoleId(Integer roleId);

    List<Permission> findAll();

    List<Integer> findPermissionById(Integer id);

    Page<Permission> findByPage(String queryString);

    Permission findExist(Permission permission);

    long findCountByCheckPermissionId(Integer id);
}